package scsc.web.oa.consult.data;

import scsc.pub.data.Consult;
import java.io.Serializable;
import scsc.pub.tools.StringUtil;

public class ConsultData extends Consult implements Serializable {
	private Integer bulletinId;

	private String operatorId;

	private String operatorname;

	private String deptname;

	public String getDeptname() {
		return deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	public String getOperatorname() {
		return operatorname;
	}

	public void setOperatorname(String operatorname) {
		this.operatorname = operatorname;
	}

	public Integer getBulletinId() {
		return bulletinId;
	}

	public void setBulletinId(Integer bulletinId) {
		this.bulletinId = bulletinId;
	}

	public String getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}

	public void init() {
		this.setBulletinId(null);
		this.setOperatorId("");
		this.setCreateDate("");
		this.setOperatorname("");
		this.setDeptname("");
	}

	public void reset() {
		init();
	}

	public ConsultData() {
		init();
	}

	public ConsultData(Integer bulletinId, String operatorId,
			String createDate, String operatorname, String deptname) {
		this.setBulletinId(bulletinId);
		this.setOperatorId(operatorId);
		if (createDate != null) {
			this.setCreateDate(StringUtil.trim(createDate).substring(0, 10));
		} else {
			this.setCreateDate("");
		}
		this.setOperatorname(operatorname);
		this.setDeptname(deptname);
	}

	public ConsultData(Integer bulletinId, String operatorId, String createDate) {
		this.setBulletinId(bulletinId);
		this.setOperatorId(operatorId);
		if (createDate != null) {
			this.setCreateDate(StringUtil.trim(createDate).substring(0, 10));
		} else {
			this.setCreateDate("");
		}
	}
}
